* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}
header {
    background-color: #3f51b5;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
nav ul {
    display: flex;
    list-style: none;
}
nav ul li {
    margin-left: 1rem;
}
nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}
nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
}
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}
h1, h2, h3 {
    color: #333;
    margin-bottom: 1rem;
}
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #303f9f;
}
.btn-outline {
    background-color: transparent;
    border: 1px solid #3f51b5;
    color: #3f51b5;
}
.btn-outline:hover {
    background-color: #3f51b5;
    color: white;
}
.btn-danger {
    background-color: #f44336;
}
.btn-danger:hover {
    background-color: #d32f2f;
}
.footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: white;
    margin-top: 2rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #000;
}
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.question-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}
.question-item:hover {
    background-color: #f9f9f9;
}
.question-item:last-child {
    border-bottom: none;
}
.question-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #3f51b5;
}
.question-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.question-reward {
    color: #f44336;
    font-weight: bold;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.pagination button {
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
}
.pagination button.active {
    background-color: #3f51b5;
    color: white;
    border-color: #3f51b5;
}
.user-info-section {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #666;
    position: relative;
    cursor: pointer;
}
.user-details h3 {
    margin-bottom: 0.5rem;
}
.user-coin-balance {
    color: #ff9800;
    font-weight: bold;
    font-size: 1.2rem;
}
.btn-recharge {
    background-color: #ff9800;
}
.btn-recharge:hover {
    background-color: #f57c00;
}
.answer-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
.answer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}
.answer-content {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.answer-actions {
    display: flex;
    align-items: center;
}
.answer-accepted {
    color: #4caf50;
    font-weight: bold;
    font-size: 0.9rem;
}
.btn-accept {
    background-color: #4caf50;
    margin-left: 0.5rem;
}
.btn-accept:hover {
    background-color: #45a049;
}
.transaction-table {
    width: 100%;
    border-collapse: collapse;
}
.transaction-table th,
.transaction-table td {
    padding: 10px 0;
    text-align: left;
}
.transaction-table th {
    border-bottom: 1px solid #ddd;
}
.transaction-table tr {
    border-bottom: 1px solid #eee;
}
.amount-positive {
    color: #4caf50;
    font-weight: bold;
}
.amount-negative {
    color: #f44336;
    font-weight: bold;
}